package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.service.IDbBackupAndRecoverService;
import cn.wolfcode.crm.service.IMenuService;
import cn.wolfcode.crm.util.JsonResult;
import com.alibaba.druid.support.json.JSONUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

@Controller
public class IndexController {
    @Autowired
    private IMenuService menuService;


    @RequestMapping("index")
    public String testmain() {
        menuService.getRootMenu();
        return "index";
    }

    @RequestMapping("login")
    public String login() {
        return "redirect:/login.jsp";
    }

    @RequestMapping("getHome")
    public String goIndex() {

        return "redirect:/home.html";
    }

}
